﻿using UnityEngine;
using System.Collections;

public class ButtonAction : MonoBehaviour {
	public bool isQuitButton = false;

	public void OnMouseExit() {
		renderer.material.color = Color.white;
	}

	public void OnMouseEnter() {
		renderer.material.color = Color.gray;
	}

	public void OnMouseUp() {
		if(isQuitButton) {
			Application.Quit();
		} else {
			Application.LoadLevel(1);
		}
	}
}
